Script ::= MP3Script
null ::= (null)
MP3Script ::= <Lines> | null
Lines ::= <Line> | <Line> <Lines> | null
Line ::= <Statement> <Newline> | <Comment> <Newline> | <Newline> | null
Newline ::= CR | LF | CR <Newline> | LF <Newline>
Comment ::= QUOTE <Letters> | <Comment> <Letters>
Letters ::= LETTER | LETTER <Letters> | null
Statement ::= <TransStmt> | <BgStmt> | <BitmapStmt> | <OnOffBtnSt> | <ButtonStmt> | <SliderStmt> | <AlphaStmt> | <LblStmt> | <MaskStmt>
Value ::= NUMBER
Offset ::= <Value> , <Value>
Size ::= <Value> , <Value>
RGBTri ::= <Value> , <Value> , <Value>
; Transparency overrides are defined as
; TRANSPARENCY 255,23,16
; TRANSStmt is the transparency RGB value that's used in all the bitmaps.
; all bitmaps will use this as its transparent index. all bitmaps must
; use the same pallette.
TransStmt ::= "TRANSPARENCY" <RGBTri>
; Bitmaps are defined as
; BITMAP 101,play.bmp
; 101 is now the ID for play.bmp.
BitmapStmt::= "BITMAP" <Value> , <Filename>
Filename ::= <FilePrefix> . <FileSuffix>
FilePrefix::= <Letters>
FileSuffix::= <Letters>
; Alphabets are defined as
; ALPHA 401,text.bmp,6,8
; text.bmp holds the following data in characters 6 wide by 8 high:
; ABCDEFHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=[]{};':",./<>?\|`~
; and then 'space' and '...' are appended to that list as well.
AlphaStmt ::= "ALPHA" <Value> , <Filename> , <Value> , <Value>
; Buttons are defined as
; BUTTON PLAY,101,102,RECT[100;100;132;132],105,105,27,27,0,0,11,12
; defines a PLAY button that gets mouse events ([100-132],[100-132]), and the
; 27x27 area from offset (0,0) in bitmap #101 is blitted into position (105,105).
; However, when it is pressed, the 27x27 area from offset (11,12) in bitmap #102
; is blitted into position (105,105) on the background.
ButtonStmt::= "BUTTON" <Function> , <ButtonMods>
Function ::= <Letters>
ButtonMods::= <BitmapUsed> , <MouseArea> , <BitmapOffs> , <Offset> , <Offset>
BitmapUsed::= <Value> , <Value>
MouseArea ::= <RectMouse>
RectMouse ::= RECT [ <Value> ; <Value> ; <Value> ; <Value> ]
BitmapOffs::= <Offset> , <Size>
; On/Off Buttons (used for SHUFFLE, etc) are defined as
; ONOFF SHUFFLE,101,102,103,104,RECT[100;100;132;132],105,105,27,27,0,0,11,12,0,0,0,0
; defines a PLAY button that gets mouse events ([100-132],[100-132]), and the
; 27x27 area from offset (0,0) in bitmap #101 is blitted into position (105,105).
; However, when it is pressed, the 27x27 area from offset (11,12) in bitmap #103
; is blitted into position (105,105) on the background. #102 is used when it was
; off and pressed, and #104 is used when on and pressed.
OnOffBtnSt::= "ONOFF" <Function> , <OnOffMods>
OnOffMods ::= <OOBmpUsed> , <MouseArea> , <BitmapOffs> , <Offset> , <Offset> , <Offset> , <Offset>
OOBmpUsed ::= <Value> , <Value> , <Value> , <Value>
; Sliders are defined as
; SLIDER VOLUME,HORZ,101,29,8,RECT[20;50;220;80],20,50,200,30,12,6,12,6
; defines a VOLUME horizontal slider with 29 ticks, of whose backgrounds are
; represented in the bitmap #101 as a stacked strip, each 8 pixels high.
; the slider gets mouse events (20-220,50-80). the background is extracted
; from bitmap #101 and blitted at position (20,50) on the main window, (200,30)
; in dimension. below the stacked strip is one more strip, consisting
; of the slider (nub) itself, unpressed and pressed. it is 6 pixels
; high and twelve wide (and are butted up against eachother).
SliderStmt::= "SLIDER" <Function> , <SliderMods>
SliderMods::= <Direction> , <SlidBmpStf> , <Value> , <RectMouse> , <BitmapOffs> , <Size> , <Size>
Direction ::= "HORZ" | "VERT"
SlidBmpStf::= <Value> , <Value>
; labels are defined as
; LABEL KBPS,101,500,RECT[50;50;150;82]
; defines a LABEL with an alphabet #500, whose background is #101,
; taking up the RECT space of (50,50) to (150,82).
LblStmt ::= "LABEL" , <Function> , <Value> , <Value> , <RectMouse>
; the BACKGROUND is defined as
; BACKGROUND 100,0,0,240,296
; blit an area of (240,296) of bitmap #100 from its offset of (0,0) onto the
; window, tiling if necessary
BgStmt ::= "BACKGROUND" <Value> , <Offset>
; Masks are defined as
; MASK 101,play.gif
; play.gif is now the mask for the bitmap with ID 101.
MaskStmt ::= "MASK" <Value> , <Filename>
|